﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="WFExtended.Samples.Activities.WcfContractProxy" sap2010:ExpressionActivityEditor.ExpressionActivityEditor="C#" sap2010:WorkflowViewState.IdRef="WFExtended.Samples.Activities.WcfContractProxy_1"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:local="clr-namespace:WFExtended.Samples.Model"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:p="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:wa="clr-namespace:WFExtended.Activities;assembly=WFExtended"
 xmlns:wfs="clr-namespace:WFExtended.Framework.ServiceModel;assembly=WFExtended"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Text</x:String>
      <x:String>System.ServiceModel</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Drawing</AssemblyReference>
      <AssemblyReference>System.Runtime.DurableInstancing</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Discovery</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>System.Data.DataSetExtensions</AssemblyReference>
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>WFExtended</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>WFExtended.Samples</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Sequence sap2010:WorkflowViewState.IdRef="Sequence_1">
    <Sequence.Variables>
      <Variable x:TypeArguments="x:Int32" Name="result" />
    </Sequence.Variables>
    <wa:WcfUriProxy x:TypeArguments="local:IMyService" Identity="{x:Null}" EnablePersistence="True" sap2010:WorkflowViewState.IdRef="WcfUriProxy`1_1" RetryCount="2" RetryDelay="00:00:02">
      <wa:WcfUriProxy.Binding>
        <InArgument x:TypeArguments="p:Binding">
          <mca:CSharpValue x:TypeArguments="p:Binding">new WSHttpBinding()</mca:CSharpValue>
        </InArgument>
      </wa:WcfUriProxy.Binding>
      <wa:WcfUriProxy.EndPointBehaviors>
        <InArgument x:TypeArguments="scg:List(p:IEndpointBehavior)" />
      </wa:WcfUriProxy.EndPointBehaviors>
      <wa:WcfUriProxy.Headers>
        <InArgument x:TypeArguments="scg:List(p:AddressHeader)" />
      </wa:WcfUriProxy.Headers>
      <wa:WcfUriProxy.Proxy>
        <InArgument x:TypeArguments="wfs:WcfProxy(local:IMyService)" />
      </wa:WcfUriProxy.Proxy>
      <wa:WcfUriProxy.Uri>
        <InArgument x:TypeArguments="x:Uri">
          <mca:CSharpValue x:TypeArguments="x:Uri">new Uri("http://localhost:8889/ws")</mca:CSharpValue>
        </InArgument>
      </wa:WcfUriProxy.Uri>
      <ActivityAction x:TypeArguments="wfs:WcfProxy(local:IMyService)">
        <ActivityAction.Argument>
          <DelegateInArgument x:TypeArguments="wfs:WcfProxy(local:IMyService)" Name="proxy" />
        </ActivityAction.Argument>
        <Sequence sap2010:WorkflowViewState.IdRef="Sequence_2">
          <Persist sap2010:WorkflowViewState.IdRef="Persist_1" />
          <wa:WcfOperationInvoker Result="{x:Null}" sap2010:WorkflowViewState.IdRef="WcfOperationInvoker_1" OperationName="Ping">
            <wa:WcfOperationInvoker.Parameters>
              <scg:Dictionary x:TypeArguments="x:String, InArgument" />
            </wa:WcfOperationInvoker.Parameters>
            <wa:WcfOperationInvoker.Proxy>
              <InArgument x:TypeArguments="wfs:AWcfProxy">
                <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">proxy</mca:CSharpValue>
              </InArgument>
            </wa:WcfOperationInvoker.Proxy>
          </wa:WcfOperationInvoker>
          <Persist sap2010:WorkflowViewState.IdRef="Persist_2" />
          <wa:WcfOperationInvoker x:TypeArguments="x:Int32" sap2010:WorkflowViewState.IdRef="WcfOperationInvoker`1_1" OperationName="Test">
            <wa:WcfOperationInvoker.Parameters>
              <scg:Dictionary x:TypeArguments="x:String, InArgument">
                <InArgument x:TypeArguments="x:Int32" x:Key="param1">3</InArgument>
                <InArgument x:TypeArguments="x:Int32" x:Key="param2">2</InArgument>
              </scg:Dictionary>
            </wa:WcfOperationInvoker.Parameters>
            <wa:WcfOperationInvoker.Proxy>
              <InArgument x:TypeArguments="wfs:AWcfProxy">
                <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">proxy</mca:CSharpValue>
              </InArgument>
            </wa:WcfOperationInvoker.Proxy>
            <wa:WcfOperationInvoker.Result>
              <OutArgument x:TypeArguments="x:Int32">
                <mca:CSharpReference x:TypeArguments="x:Int32">result</mca:CSharpReference>
              </OutArgument>
            </wa:WcfOperationInvoker.Result>
          </wa:WcfOperationInvoker>
          <Persist sap2010:WorkflowViewState.IdRef="Persist_3" />
          <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_1">
            <InArgument x:TypeArguments="x:String">
              <mca:CSharpValue x:TypeArguments="x:String">result.ToString()</mca:CSharpValue>
            </InArgument>
          </WriteLine>
        </Sequence>
      </ActivityAction>
    </wa:WcfUriProxy>
    <wa:WcfConfigurationProxy x:TypeArguments="local:IMyService2" Headers="{x:Null}" RetryCount="{x:Null}" RetryDelay="{x:Null}" ConfigurationName="basicEndpoint" EnablePersistence="False" sap2010:WorkflowViewState.IdRef="WcfConfigurationProxy`1_2">
      <wa:WcfConfigurationProxy.EndPointBehaviors>
        <InArgument x:TypeArguments="scg:List(p:IEndpointBehavior)" />
      </wa:WcfConfigurationProxy.EndPointBehaviors>
      <wa:WcfConfigurationProxy.Proxy>
        <InArgument x:TypeArguments="wfs:WcfProxy(local:IMyService2)" />
      </wa:WcfConfigurationProxy.Proxy>
      <ActivityAction x:TypeArguments="wfs:WcfProxy(local:IMyService2)">
        <ActivityAction.Argument>
          <DelegateInArgument x:TypeArguments="wfs:WcfProxy(local:IMyService2)" Name="proxy" />
        </ActivityAction.Argument>
        <wa:WcfOperationInvoker Result="{x:Null}" sap2010:WorkflowViewState.IdRef="WcfOperationInvoker_3" OperationName="Ping">
          <wa:WcfOperationInvoker.Parameters>
            <scg:Dictionary x:TypeArguments="x:String, InArgument" />
          </wa:WcfOperationInvoker.Parameters>
          <wa:WcfOperationInvoker.Proxy>
            <InArgument x:TypeArguments="wfs:AWcfProxy">
              <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">proxy</mca:CSharpValue>
            </InArgument>
          </wa:WcfOperationInvoker.Proxy>
        </wa:WcfOperationInvoker>
      </ActivityAction>
    </wa:WcfConfigurationProxy>
    <wa:WcfDiscoveryProxy x:TypeArguments="local:IMyService2" DiscoveryProvider="{x:Null}" MaxResults="{x:Null}" RetryCount="{x:Null}" RetryDelay="{x:Null}" Timeout="{x:Null}" EnablePersistence="True" sap2010:WorkflowViewState.IdRef="WcfDiscoveryProxy`1_1" ScopeMatch="Prefix">
      <wa:WcfDiscoveryProxy.Binding>
        <InArgument x:TypeArguments="p:Binding">
          <mca:CSharpValue x:TypeArguments="p:Binding">new NetTcpBinding()</mca:CSharpValue>
        </InArgument>
      </wa:WcfDiscoveryProxy.Binding>
      <wa:WcfDiscoveryProxy.EndPointBehaviors>
        <InArgument x:TypeArguments="scg:List(p:IEndpointBehavior)" />
      </wa:WcfDiscoveryProxy.EndPointBehaviors>
      <wa:WcfDiscoveryProxy.Headers>
        <InArgument x:TypeArguments="scg:List(p:AddressHeader)" />
      </wa:WcfDiscoveryProxy.Headers>
      <wa:WcfDiscoveryProxy.Proxy>
        <InArgument x:TypeArguments="wfs:WcfProxy(local:IMyService2)" />
      </wa:WcfDiscoveryProxy.Proxy>
      <wa:WcfDiscoveryProxy.Scopes>
        <InArgument x:TypeArguments="scg:List(x:Uri)">
          <mca:CSharpValue x:TypeArguments="scg:List(x:Uri)">new List&lt;Uri&gt;(){new Uri("http://demo.wfe.com")}</mca:CSharpValue>
        </InArgument>
      </wa:WcfDiscoveryProxy.Scopes>
      <ActivityAction x:TypeArguments="wfs:WcfProxy(local:IMyService2)">
        <ActivityAction.Argument>
          <DelegateInArgument x:TypeArguments="wfs:WcfProxy(local:IMyService2)" Name="proxy" />
        </ActivityAction.Argument>
        <wa:WcfOperationInvoker Result="{x:Null}" sap2010:WorkflowViewState.IdRef="WcfOperationInvoker_4" OperationName="Ping">
          <wa:WcfOperationInvoker.Parameters>
            <scg:Dictionary x:TypeArguments="x:String, InArgument" />
          </wa:WcfOperationInvoker.Parameters>
          <wa:WcfOperationInvoker.Proxy>
            <InArgument x:TypeArguments="wfs:AWcfProxy">
              <mca:CSharpValue x:TypeArguments="wfs:AWcfProxy">proxy</mca:CSharpValue>
            </InArgument>
          </wa:WcfOperationInvoker.Proxy>
        </wa:WcfOperationInvoker>
      </ActivityAction>
    </wa:WcfDiscoveryProxy>
    <sads:DebugSymbol.Symbol>d1BFOlxQcm9qZWN0c1xXRkVcTWFpblxTb3VyY2VzXFdGRXh0ZW5kZWQuU2FtcGxlc1xBY3Rpdml0aWVzXFdjZkNvbnRyYWN0UHJveHkueGFtbBwvA68BDgIBATMFchYCARFzBYkBIAIBC4oBBa0BHAIBAjYLNl0CASszogEzpQECASozsQEzuwECASlEC0RpAgEnSwlwFAIBEnOUAXOjAQIBEH4JhwEiAgEMjQELjQFdAgEJmwELmwGFAQIBB6IBCasBIgIBA0wLTEICASZNC1YkAgEiVwtXQgIBIVgLaSQCARhqC2pCAgEXawtvFwIBE4QBD4QBVwIBDagBD6gBVwIBBFMRU1kCASNhEWFZAgEeW0ZbRwIBHWYRZlwCARpcRlxHAgEZbQ9tXgIBFA==</sads:DebugSymbol.Symbol>
  </Sequence>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="Persist_1" sap:VirtualizedContainerService.HintSize="211,22" />
      <sap2010:ViewStateData Id="WcfOperationInvoker_1" sap:VirtualizedContainerService.HintSize="211,93">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Persist_2" sap:VirtualizedContainerService.HintSize="211,22" />
      <sap2010:ViewStateData Id="WcfOperationInvoker`1_1" sap:VirtualizedContainerService.HintSize="211,93" />
      <sap2010:ViewStateData Id="Persist_3" sap:VirtualizedContainerService.HintSize="211,22" />
      <sap2010:ViewStateData Id="WriteLine_1" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="233,638">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WcfUriProxy`1_1" sap:VirtualizedContainerService.HintSize="263,783" />
      <sap2010:ViewStateData Id="WcfOperationInvoker_3" sap:VirtualizedContainerService.HintSize="200,93" />
      <sap2010:ViewStateData Id="WcfConfigurationProxy`1_2" sap:VirtualizedContainerService.HintSize="263,238" />
      <sap2010:ViewStateData Id="WcfOperationInvoker_4" sap:VirtualizedContainerService.HintSize="200,93" />
      <sap2010:ViewStateData Id="WcfDiscoveryProxy`1_1" sap:VirtualizedContainerService.HintSize="263,238" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="285,1463">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WFExtended.Samples.Activities.WcfContractProxy_1" sap:VirtualizedContainerService.HintSize="325,1543" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>